// #![allow(non_snake_case)]
// // import the prelude to get access to the `rsx!` macro and the `Scope` and `Element` types
// use dioxus::prelude::*;

// fn main() {
//     // launch the dioxus app in a webview
//     dioxus_desktop::launch(App);
// }

// // define a component that renders a div with the text "Hello, world!"
// fn App(cx: Scope) -> Element {
//     cx.render(rsx! {
//         div {
//             "Hello, world!"
//         }
//     })
// }

use std::{thread::sleep, time::{Duration, Instant}};


fn main() {
    let now = Instant::now();

   // we sleep for 2 seconds
   sleep(Duration::new(2, 0));
   // it prints '2'
   println!("{}", now.elapsed().as_secs());
}